package com.netted.studentbook.application;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.blankj.utilcode.util.Utils;
public class BaseApplication extends Application {
    //Volley的全局请求队列
    public static RequestQueue requestQueue;
    /**
     * @return Volley全局请求队列
     */
    public static RequestQueue getRequestQueue() {
        return requestQueue;
    }


    @Override
    public void onCreate() {
        super.onCreate();

        //实例化Volley全局请求队列
        requestQueue = Volley.newRequestQueue(getApplicationContext());
        Utils.init(this);

    }
}
